import { Statement, STATEMENT_KIND, STATEMENT_TAG } from '../statement';

export class Continue extends Statement {
  $kind: STATEMENT_KIND.CONTINUE = STATEMENT_KIND.CONTINUE;
  $tag: STATEMENT_TAG.CONTROL = STATEMENT_TAG.CONTROL;

  static isContinue(object: any): object is Continue {
    return (
      Statement.isStatement(object) && object.$kind === STATEMENT_KIND.CONTINUE
    );
  }
}
